using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour
{
    // Start is called before the first frame update
    public static GameManager instance;
    private void Awake()
    {
        instance = this;
    }
    void Start()
    {
        EventCenter.GetInstance().EventTrigger("Playinit");
        EventCenter.GetInstance().EventTrigger("PlayUIinit");
    }

    // Update is called once per frame
    void Update()
    {
        if(Input.GetMouseButtonUp(0))
        {
            tanchuShiJian();

        }
    }

    public void tanchuShiJian()
    {
        string sth= ShiJianManager.instance.ramShijian().neirong;
        EventCenter.GetInstance().EventTrigger<string>("tanchu", sth);

    }
}
